package cn.maihe.elg.operation.supports.electronicseal.kt.cloudsign.service;

import cn.maihe.elg.operation.supports.electronicseal.kt.KtConfig;
import cn.maihe.elg.operation.supports.electronicseal.kt.cloudsign.BaseKtCloudSignService;
import cn.maihe.elg.operation.supports.electronicseal.kt.cloudsign.dto.CurrentXbStateReqDTO;
import cn.maihe.elg.operation.supports.electronicseal.kt.cloudsign.dto.CurrentXbStateRespDTO;
import cn.maihe.elg.operation.supports.electronicseal.kt.cloudsign.enums.CloudSignInterfaceEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author WJH
 * @Date 2022/09/07
 */
@Slf4j
@Service
public class CurrentXbStateService extends BaseKtCloudSignService<CurrentXbStateReqDTO, CurrentXbStateRespDTO> {
    public CurrentXbStateService(KtConfig ktConfig) {
        super(ktConfig);
    }

    @Override
    protected CloudSignInterfaceEnum serviceName() {
        return CloudSignInterfaceEnum.currentXbState;
    }


    public CurrentXbStateRespDTO queryCurrentXbState(String orderId) {
        CurrentXbStateReqDTO reqDTO = new CurrentXbStateReqDTO();
        reqDTO.setOrderId(orderId);
        CurrentXbStateRespDTO respDTO = this.doService(orderId, reqDTO);
        return respDTO;
    }
}
